package org.dromara.exam.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.exam.domain.entity.ExamRepo;
import org.dromara.exam.domain.dto.TemplateCount;

import java.math.BigDecimal;
import java.util.List;

/**
 * 题库业务对象 exam_question_set
 *
 * @author xiyin321
 * @date 2024-04-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ExamRepo.class, reverseConvertGenerate = false)
public class ExamRepoBo extends BaseEntity {

    /**
     * 题库ID
     */
    @NotNull(message = "题库ID不能为空", groups = {EditGroup.class})
    private Long repoId;

    /**
     * 题库名称
     */
    @NotBlank(message = "题库名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String repoName;

    /**
     * 题库封面地址
     */
    private Long image;

    /**
     * 共享标志
     */
    private String shareFlag;

    /**
     * 标签
     */
    private String[] tag;

    /**
     * 题目删除模式
     * 0：不删除，2：删除
     */
    private int templateDeleteMode;

    /**
     * 标签匹配模式
     * 0：部分匹配 1：全部匹配，
     */
    private int tagMatchMode;

    /**
     * 备注信息
     */
    private String remark;


}
